package com.qdlc.p2p.dal.dao;

import java.util.List;

import com.qdlc.p2p.dal.common.dao.BaseDao;
import com.qdlc.p2p.dal.common.model.jpa.PageDataList;
import com.qdlc.p2p.dal.dto.AdditionalCommodity;
import com.qdlc.p2p.dal.model.AdditionalCommodityModel;

/**
 * Created by liaoxiangkai on 2015/12/9.
 */
public interface AdditionalCommodityDao extends BaseDao<AdditionalCommodity> {

    PageDataList<AdditionalCommodityModel> list(AdditionalCommodityModel model);

    int toggleStatus(AdditionalCommodityModel model);

    int doDelete(AdditionalCommodityModel model);

    int updateIssueNum(long id);

    List<AdditionalCommodity> lotteryCommodityList(int category);
}
